label: Be more selective when selecting on focus-in
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 02:01:52 +0000 (22:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 02:01:52 +0000 (22:01 -0400)
commit64ed69c56fe79aae9940d909494c708e01b266c9
tree36c1b4ba5793ec95236d2b751d3f023ee8e64eb3
parent2a962e1c9a82ea4872cf79d1e975d794bf94a9ba
label: Be more selective when selecting on focus-in

We don't want to select on focus-in when the focus
comes from a child. The case where this does harm
is when you activate copy or paste actions from the
context menu. We close the menu before triggering the
action, and if that causes the text in the label to
be selected, unexpected things happen, since the action
applies to the current selection.

This is the equivalent of cd9f5733b3e354301f2 for GtkLabel.
gtk/gtklabel.c